<template>


    <el-table
            :data="tableData"
            border
            style="width: 100%">
        <el-table-column
                fixed
                prop="date"
                label="衣物条码"
                width="150" type="selection">
        </el-table-column>
        <el-table-column
                prop="name"
                label="衣物名称"
                width="120">
        </el-table-column>
        <el-table-column
                prop="province"
                label="品牌"
                width="120">
        </el-table-column>
        <el-table-column
                prop="city"
                label="颜色"
                width="120">
        </el-table-column>
        <el-table-column
                prop="address"
                label="分店"
                width="300">
        </el-table-column>
        <el-table-column
                prop="zip"
                label="数量"
                width="120">
        </el-table-column>
        <el-table-column
                fixed="right"
                label="操作"
                width="300"
        >
            <template slot-scope="scope">
                <el-button type="text" @click="dialogTableVisible = true">查看衣物详细</el-button>

                <el-dialog title="收货地址" :visible.sync="dialogTableVisible" :modal-append-to-body='false'>
                    <el-table :data="tableData">
                        <el-table-column property="date" label="日期" width="150"></el-table-column>
                        <el-table-column property="name" label="姓名" width="200"></el-table-column>
                        <el-table-column property="address" label="地址"></el-table-column>
                    </el-table>
                </el-dialog>

            </template>
        </el-table-column>

    </el-table>
</template>
<script>
    export default {
        name: "honggan",
        data() {
            return {
                tableData: [{
                    date: '',
                    name: '',
                    province: '',
                    city: '',
                    address: '',
                    zip: 0
                }, {
                    date: '',
                    name: '',
                    province: '',
                    city: '',
                    address: '',
                    zip: 0
                }, {
                    date: '',
                    name: '',
                    province: '',
                    city: '',
                    address: '',
                    zip: 0
                }, {
                    date: '',
                    name: '',
                    province: '',
                    city: '',
                    address: '',
                    zip: 0
                }],
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                },
                formLabelWidth: '120px',
                dialogTableVisible: false,
                dialogFormVisible: false,
            }
        }
        ,
        methods: {

        }
    };
</script>
